package com.sichemxiang.config.exception;

/**
 * @Author xiangshizhen
 * 自定义异常
 * @Date 2025/1/14
 */

public enum ErrorEnum {

    SUCCESS("10000", "成功"),
    OTHER_ERROR("100006", "其他异常"),
    RECORD_EXISTS("100016", "记录已存在"),
    RESULT_NULL("100017", "记录不存在"),
    SYSTEM_ERROR("100001", "系统正在维护，请联系管理员");

    private final String code;
    private final String message;

    ErrorEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }



}
